import CacheUtil from "@/utils/CacheUtil";

const constantsData = () => {
    function getCache(key) {
        return CacheUtil.getItem(key).configValue;
    }

    const enumData = {
        siteUrl: getCache("SITE_URL"),//网站地址
        siteTitle: getCache("SITE_TITLE"),//网站标题
        siteTitleDep: getCache("SITE_TITLE_DEP"),//网站副标题
        siteName: getCache("SITE_NAME"),//网站名称
        siteLogo: getCache("SITE_LOGO"),//网站logo
        siteContactUrl: getCache("SITE_CONTACT_URL"),//联系客服地址
        searchTitle: getCache("SEARCH_TITLE"),//搜索框标题
        searchDescription: getCache("SEARCH_DESCRIPTION"),//搜索框描述
        searchHot: JSON.parse(getCache("SEARCH_HOT")),//搜索框热门
        searchBackground: getCache("SEARCH_BACKGROUND"),//搜索框背景图
        footerData: getCache("FOOTER_DATA"),//底部数据
        welcomeDialog: getCache("WELCOME_DIALOG"),//弹窗数据
        detailContent: getCache("DETAIL_CONTENT")//文章详情声明
    }
    return enumData
}
export default constantsData;
